//
//  HYCCollHeaderCell.m
//  FamilyTravel
//
//  Created by dllo on 15/10/23.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "HYCCollHeaderCell.h"
#define WIDTH self.contentView.frame.size.width
#define HEIFGT self.contentView.frame.size.height
@implementation HYCCollHeaderCell
- (void)dealloc {
    [_countryImageView release];
    [_countryLabel release];
   
    
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.countryImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, WIDTH , HEIFGT / 1.14)];
        [self addSubview:self.countryImageView];
        self.countryImageView.layer.borderWidth = 10;
        self.countryImageView.layer.cornerRadius = 1;
        self.countryImageView.layer.masksToBounds = YES;
        [_countryImageView release];
        
        self.countryLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, HEIFGT - 7, WIDTH, 15)];
        [self addSubview: self.countryLabel];
        [_countryLabel release];
        self.countryLabel.textAlignment = NSTextAlignmentCenter;
        self.countryLabel.font = [UIFont systemFontOfSize:12];
    }
    return self;
}



@end
